package com.bat.spring.circulardepend;

import com.bat.spring.normalbean.AppleService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author: liusen
 * @date: 2022-04-10
 * @desc:
 **/

@Configuration
@ComponentScan("com.bat.spring.circulardepend")
public class CircluarAppConfig {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(CircluarAppConfig.class);

		System.out.println(context.getBean(Husband.class));
	}
}
